﻿using System;
using FreeSql.DataAnnotations;

namespace Model
{
    /// <summary>
    /// PLC中变量和轴承型号映射
    /// </summary>
    public class Map : ModelBase
    {
        private int _id;
        /// <summary>
        /// 主键ID
        /// </summary>
        [Column(CanInsert = false)]
        public int Id
        {
            get => _id;
            set => Set(ref _id, value);
        }

        private int _tagVal;
        /// <summary>
        /// PLC便签变量
        /// </summary>
        public int TagVal
        {
            get => _tagVal;
            set => Set(ref _tagVal, value);
        }
        private string _bearingNo;
        /// <summary>
        /// 轴承编号
        /// </summary>
        public string BearingNo
        {
            get { return _bearingNo; }
            set { _bearingNo = value; }
        }

        private DateTime _timeStamp;
        /// <summary>
        /// 维护时间
        /// </summary>
        public DateTime TimeStamp
        {
            get => _timeStamp;
            set => Set(ref _timeStamp, value);
        }

    }
}
